<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
 
<jsFileName><!--fckeditor/fckeditor.js--></jsFileName>
<s:form id="add_pubInfo_form" name="add_pubInfo_form" method="post" action="pubInfo/save.do" enctype="multipart/form-data" onsubmit="return false;">
	<input type="hidden" name="zt" value="9"/>
	<input type="hidden" name="istop" value="0"/>
	<table class="form-table">
		<tr>
			<th width="150">标题：</th>
			<td>
			<s:textfield key="bt" title="请输入标题" cssClass="form-txtinput" id="bt" size="40" maxlength="100" value="%{model.zt}"/>
			</td>
		</tr>
		<%-- 
		<tr>
			<th width="150">主题：</th>
			<td>
			<mytag:select id="zt" title="请输入主题" name="zt" sql="basedata" isSql="false" condition="57" dataType="Long" listKey="id" listValue="name" headerKey="" headerValue="请选择" onChange="Ext.milan.pagejs.page_pubInfo.changeJl(this)"/>
			</td>
		</tr>
		--%>
		<tr>
			<th width="150">类别：</th>
			<td>
				<mytag:select id="lb" title="请输入类别" name="lb" sql="basedata" isSql="false" condition="9" dataType="Long" listKey="id" listValue="name" headerKey="" headerValue="请选择" />
				<%--<select id="lb" name="lb"></select>--%>
			</td>
		</tr>
		<tr>
			<th>是否置顶申请：</th>
			<td>
				<s:select name="sqtop" list="#{'':'--请选择--','0':'否','1':'是'}"></s:select>
			</td>
		</tr>
		<%-- 
		<tr>
			<th>查看人员：</th>
			<td>
				<table border="0" cellspacing="1" cellpadding="1">
					<tr>
						<td valign="top" style="border: 0">
							<select id="selected_users_in_poa" name="userids" multiple="true" size="10" style="width: 130px;">
									
							</select>
						</td>
						<td valign="top" style="border: 0">
							<a class="btn_short" title="点击添加用户" href="javascript:void(0)" 
								onClick="Ext.milan.pagejs.page_pubOffice.selectUsers('selected_users_in_poa')">添加</a>
							<a class="btn_short" title="点击添加用户" href="javascript:void(0)" id="del_user_in_poa_btn" class="btn-short" style="display: none" 
								onClick="Ext.milan.pagejs.page_pubOffice.removeUser()">移除</a>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		--%>
		<tr>
			<th width="150">发布部门：</th>
			<td>
			<mytag:select id="fbbm" title="请输入发布部门" name="fbbm" sql="depttopdata" isSql="false" listKey="deptname" listValue="deptname" headerKey="" headerValue="请选择"/>
			</td>
		</tr>
		<tr>
			<th width="150">附件：</th>
			<td>
				<%--<input name="attachFile" type="file" contenteditable="false" id="attachfile" size="40">&nbsp;附件最大不能超过20.00M --%>
				<div><a title="点击选择附件，单个文件大小不超过20.00MB" class="btn_long" id="attachFile_FileUpload" ></a></div>
				<div id='attachFiles'></div>
			</td>
		</tr>
		<tr>
          <th align="right">内容：</th>
          <td align="left" valign="top">
            <textarea id="content" name="content" rows="10"	style="width: 100%">${content}</textarea>
          </td>
        </tr>
	</table>
	<div class="win-btn-panel">
	    <a class="btn_short" class="btn_short" href="javascript:void(0)" 
			onclick="Ext.milan.pagejs.page_pubInfo.save('add_pubInfo_form')">确 定</a>
		<a class="btn_short" class="btn_short" href="javascript:void(0)" 
			onclick="Ext.milan.pagejs.page_pubInfo.closeWin(false);">取 消</a>
	</div>
</s:form>
<script type="text/javascript"> 
//初始化文本编辑器
var oFCKeditor = new FCKeditor('content');
oFCKeditor.BasePath = '${ctx}/fckeditor/';
oFCKeditor.Height =200;
oFCKeditor.ReplaceTextarea();

new Milan.widget.FileComponent(
{
	container : "attachFile_FileUpload",
	targetCnt : "attachFiles",
	fileMaxCount : 99,
	onSelectedCallback : function(fid)
	{
		Ext.milan.pagejs.page_pubInfo.addAttachment("attachFiles",fid);
	}
});
</script>
